<template>
    <tiny-editor v-model="content" :init="init" id="textarea"></tiny-editor>
</template>

<script>
import editor from '@tinymce/tinymce-vue';
export default {
    name: 'myEditor',
    data() {
        return {
            content: '',
            init: { // 配置信息
                selector: '#textarea',
                height: 350,
                language_url: '/static/tinymce/langs/zh-Hans.js', // 中文包的存放路径
                language: 'zh-Hans',
                // skin_url: '/static/tinymce/skins/ui/oxide',
                content_css: '/static/tinymce/skins/content/default/content.css',
                toolbar_mode: 'none',
                // menubar: false,
                // resize: false,
            },
        };
    },
    components: {
        'tiny-editor': editor,
    },
    created() {
    },
    methods: {
    },
}
</script>